package com.atguigu.spzx.service.product.service.impl;

import com.atguigu.spzx.service.product.mapper.BrandMapper;
import com.atguigu.spzx.service.product.service.BrandService;
import com.atguigu.spzx.model.entity.brand.Brand;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * title:
 * author: zgl
 * date: 2024/1/16
 * description：
 */
@Service
public class BrandServiceImpl extends ServiceImpl<BrandMapper, Brand> implements BrandService {

    @Cacheable(value = "spzx:brands:cache",key = "'all'")
    @Override
    public List<Brand> findBrandList() {
        return this.list();
    }
}
